package com.keyingbo.leran.pattern.singletonpattern.enum_;

/**
 * @Auther: KEYB
 * @Date: 2019-3-12 08:38
 * @Description:
 */
public enum  EnumSilgleton {
    DATASOURCE;
    private DataSourceDemo dataSourceDemo;
    private EnumSilgleton(){
        dataSourceDemo = new DataSourceDemo();
    }
    public DataSourceDemo getDataSource(){
        return dataSourceDemo;
    }
}
